@echo off
RMDIR /s /q "C:\Data\HnC\workspaces\unipass\hnc-project-hornet-edi-v1.1.0\build"
DEL /Q "C:\Data\HnC\workspaces\unipass\hnc-project-hornet-edi-v1.1.0\MANIFEST"
RMDIR /s /q "C:\Data\HnC\workspaces\unipass\hnc-project-hornet-edi-v1.1.0\bots.egg-info"


MOVE /Y "C:\Data\HnC\workspaces\unipass\hnc-project-hornet-edi-v1.1.0\bots\config\bots.ini"         "C:\Data\HnC\deployment"
MOVE /Y "C:\Data\HnC\workspaces\unipass\hnc-project-hornet-edi-v1.1.0\bots\config\settings.py"       "C:\Data\HnC\deployment"
MOVE /Y "C:\Data\HnC\workspaces\unipass\hnc-project-hornet-edi-v1.1.0\bots\botssys\sqlitedb\botsdb" "C:\Data\HnC\deployment"


ECHO build exe
DEL /Q "C:\Data\HnC\workspaces\unipass\hnc-project-hornet-edi-v1.1.0\setup.py"
COPY /Y "C:\Data\HnC\workspaces\unipass\hnc-project-hornet-edi-v1.1.0\setup_win.py" "C:\Data\HnC\workspaces\unipass\hnc-project-hornet-edi-v1.1.0\setup.py"
REM ~ c:\python26\python setup.py --quiet bdist_wininst  --target-version=2.6 --install-script=postinstallation.py  --no-target-compile  --no-target-optimize  --user-access-control=auto --bitmap=botslogo.bmp --title="Bots open source edi translator"
REM ~ c:\python27\python setup.py --quiet bdist_wininst   --install-script=postinstallation.py  --no-target-compile  --no-target-optimize  --user-access-control=force --bitmap=botslogo.bmp --title="Bots open source edi translator"
c:\python27\python setup.py --quiet bdist_wininst   --install-script=postinstallation.py  --no-target-compile  --no-target-optimize  --user-access-control=force --bitmap=hornetlogo.bmp --title="Hornet edi translator"


REM COPY /Y "C:\Data\HnC\workspaces\unipass\hnc-project-hornet-edi-v1.1.0\bots\install\settings.py"  "C:\Data\HnC\workspaces\unipass\hnc-project-hornet-edi-v1.1.0\bots\config"
REM COPY /Y "C:\Data\HnC\workspaces\unipass\hnc-project-hornet-edi-v1.1.0\bots\install\bots.ini"     "C:\Data\HnC\workspaces\unipass\hnc-project-hornet-edi-v1.1.0\bots\config"
REM COPY /Y "C:\Data\HnC\workspaces\unipass\hnc-project-hornet-edi-v1.1.0\bots\install\botsdb"       "C:\Data\HnC\workspaces\unipass\hnc-project-hornet-edi-v1.1.0\bots\botssys\sqlitedb"


MOVE /Y "C:\Data\HnC\deployment\botsdb"       "C:\Data\HnC\workspaces\unipass\hnc-project-hornet-edi-v1.1.0\bots\botssys\sqlitedb" 
MOVE /Y "C:\Data\HnC\deployment\bots.ini"     "C:\Data\HnC\workspaces\unipass\hnc-project-hornet-edi-v1.1.0\bots\config" 
MOVE /Y "C:\Data\HnC\deployment\settings.py"  "C:\Data\HnC\workspaces\unipass\hnc-project-hornet-edi-v1.1.0\bots\config" 


RMDIR /s /q "C:\Data\HnC\workspaces\unipass\hnc-project-hornet-edi-v1.1.0\build"
DEL /Q "C:\Data\HnC\workspaces\unipass\hnc-project-hornet-edi-v1.1.0\MANIFEST"
ECHO BUILD FINISHED
